﻿using ServerSide.Common;
using ServerSide.Model;
using ServerSide.Model.Dto.UserDto;
using ServerSide.Model.Other;

namespace ServerSide.Service.Interface
{
    /// <summary>
    /// 用户管理页面接口
    /// </summary>
    public interface IUserService
    {
        /// <summary>
        /// 获取用户数据，进行分页、搜索
        /// </summary>
        /// <param name="userRequest"></param>
        /// <returns></returns>
        PageInfo GetUsers(UserRequest userRequest);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="userId"></param>
        /// <returns></returns>
        UserResponse GetPersonInfoById(int userId);

        bool AddUser(UserAdd userAdd);

        bool DelUser(User user);
        bool BatchDelUsers(List<int> ids);

        bool UpdateUser(UserAdd user);

        bool UpdateEnableOrPassword(int id, int enable, string? password);
    }
}
